package com.ruyuan2020.im.design.ChainOfResponsibilityPattern.use;

import com.ruyuan2020.im.design.ChainOfResponsibilityPattern.use.request.Request;

public abstract class Handler {

    protected Handler successor; // 下一个处理者

    public void setSuccessor(Handler successor) {
        this.successor = successor;
    }

    public abstract void handleRequest(Request request); // 处理请求的抽象方法

}
